﻿<frame:CFrame x:Class="VAdvantage.Apps.FramePane"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Title="Add /Edit View"
              xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 xmlns:frame="clr-namespace:VAdvantage.Apps"
                 xmlns:provider="clr-namespace:SilverlightDesktop.Controls;assembly=SilverlightDesktop" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:my="clr-namespace:VAdvantage.Controls" Height="252" Width="564">
    
    <Grid x:Name="LayoutRoot" Background="White" >
        <Grid Margin="12,12,0,0" Name="grid1" HorizontalAlignment="Stretch" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="106" />
                <ColumnDefinition Width="227*" />
                <ColumnDefinition Width="122" />
                <ColumnDefinition Width="230*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="32" />
                <RowDefinition Height="32" />
                <RowDefinition Height="32" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="32" />
                <RowDefinition Height="32" />
                <RowDefinition Height="45" />
            </Grid.RowDefinitions>
            <sdk:Label Height="15" HorizontalAlignment="Left" Name="lblFrames" VerticalAlignment="Center" Width="94" Margin="6,0,0,0" />
            <my:VComboBox Grid.Column="1" Height="23" x:Name="cmbFrames" SelectionChanged="cmbFrames_SelectionChanged" VerticalAlignment="Center" Margin="0,4" />
            <my:VTextBox Grid.Column="1" Grid.Row="1" Margin="0,4,5,4" x:Name="txtName" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="23" />
            <my:VTextBox Grid.Column="1" Grid.Row="2" x:Name="txtMinValue" VerticalAlignment="Center" Height="23" Margin="0,4" />
            <my:VTextBox Grid.Column="3" Grid.Row="2" Height="23" x:Name="txtMaxValue" VerticalAlignment="Center" Margin="1,4,5,4" />
            <my:VComboBox Grid.Column="1" Grid.Row="3" Height="23" x:Name="cmbBGColor" VerticalAlignment="Center" SelectionChanged="cmbBGColor_SelectionChanged" Visible="False" />
            <my:VComboBox Grid.Column="3" Grid.Row="3" Height="23" x:Name="cmbHeaderBGColor" VerticalAlignment="Center" Margin="0,4,1,4" Visible="False" />
            <sdk:Label Grid.Row="1" HorizontalAlignment="Left" Name="lblName" Width="94" Height="15" VerticalAlignment="Center" Margin="6,0,0,0" />
            <sdk:Label Grid.Row="2" Height="15" HorizontalAlignment="Left" Name="lblMinValue" VerticalAlignment="Center" Width="94" Margin="6,0,0,0" />
            <sdk:Label Grid.Column="2" Grid.Row="2" Height="15" HorizontalAlignment="Left" Name="lblMaxValue" VerticalAlignment="Center" Width="91" Margin="26,0,0,0" />
            <sdk:Label Grid.Row="3" Height="15" HorizontalAlignment="Left" Name="lblBGColor" VerticalAlignment="Center" Width="94" Margin="6,0,0,0" Visibility="Collapsed" />
            <sdk:Label Grid.Column="2" Grid.Row="3" Height="15" HorizontalAlignment="Left" Name="lblHeaderBGColor" VerticalAlignment="Center" Width="91" Margin="26,0,0,0" Visibility="Collapsed" />
            <my:VTextBox Grid.Column="1" Grid.Row="4" Height="23" x:Name="txtColspan" VerticalAlignment="Center" />
            <my:VTextBox Grid.Column="3" Grid.Row="4" Height="23" x:Name="txtRowspan" VerticalAlignment="Center" Margin="0,4,5,4" />
            <sdk:Label Height="15" HorizontalAlignment="Left" Name="lblColspan" VerticalAlignment="Center" Width="94" Grid.Row="4" Margin="6,0,0,0" />
            <sdk:Label Height="15" HorizontalAlignment="Left" Name="lblRowspan" VerticalAlignment="Center" Width="91" Grid.Column="2" Grid.Row="4" Margin="26,0,0,0" />
            <sdk:Label Height="15" HorizontalAlignment="Left" Name="lblSeq" VerticalAlignment="Center" Width="94" Grid.Row="5" Margin="6,0,0,0" />
            <my:VTextBox Grid.Column="1" Grid.Row="5" Height="23" x:Name="txtSeq" VerticalAlignment="Center" />
            <sdk:Label Grid.Column="2" Height="18" HorizontalAlignment="Left" Name="lblTabs" VerticalAlignment="Center" Width="91" Margin="26,0,0,0" />
            <my:VComboBox Grid.Column="3" x:Name="cmbTab" VerticalAlignment="Center" Height="23" Margin="0,4,5,4" />

            <StackPanel Grid.Row="6" Grid.ColumnSpan="4" Name="stackPanel1" Orientation="Horizontal" FlowDirection="RightToLeft" Margin="0,0,5,5">
                <my:VButton Margin="0" Height="35" x:Name="btnOk" Width="35" Click="btnOK_Click" >
                    <Image Source="/VAdvantage;component/Images/right_up.png" Stretch="Fill"></Image>
                </my:VButton>
                <my:VButton Margin="0" Height="35" x:Name="btnCancel" Width="35" Click="btnCancel_Click" >
                    <Image Source="/VAdvantage;component/Images/cancel_up.png" Stretch="Fill"></Image>
                </my:VButton>
            </StackPanel>

        </Grid>
        <Grid x:Name="busyWindow" Opacity=".4" Background="LightGray" Visibility="Visible" >
            <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>
        </Grid>

    </Grid>
</frame:CFrame>
